import axios from "@/utils/request.js";

/**
 * 添加职场信息
 * @param {*} jobInfo 
 * @returns 
 */
export const jobAddService = (jobInfo) => {
    return axios.post("/jobInfo/add",jobInfo)
}

/**
 * 分页查询职场信息
 * @param {*} pageNo 
 * @param {*} pageSize 
 * @param {*} titleFuzzy 
 * @returns 
 */
export const jobSelectService = (pageNo,pageSize,titleFuzzy) => {
    return axios.get("/jobInfo/loadDataList",{params:{
        pageNo,pageSize,titleFuzzy
    }})
}

/**
 * 根据jobId修改职场信息
 * @param {*} jobInfo 
 * @returns 
 */
export const jobModifyService = (jobInfo) => {
    return axios.put("/jobInfo/updateJobInfoByJobId",jobInfo)
}

/**
 * 根据jobId删除职场信息
 * @param {*} jobId 
 * @returns 
 */
export const jobDeleteService = (jobId) => {
    return axios.delete("/jobInfo/deleteJobInfoByJobId",{params:{
        jobId
    }})
}